package com.jsftoolkit.base.components;

import com.jsftoolkit.gen.GenerateUtils;
import com.jsftoolkit.gen.info.ComponentInfo;

public class GenerateComponents {

	/**
	 * Generates the base components.
	 * 
	 * @param args
	 * @throws Exception
	 */
	public static void main(String[] args) throws Exception {
		GenerateUtils.generateTag(new PassThroughTagSpec().getInfo());

		GenerateUtils.genAndUpdateAll(new DataIteratorSpec().getInfo());

		ComponentInfo[] noRenderer = { new HtmlScriptsSpec().getInfo(),
				new IncludeResourceSpec().getInfo() };
		for (ComponentInfo info : noRenderer) {
			GenerateUtils.generateTag(info);
			GenerateUtils.generateComponent(info);
			GenerateUtils.updateAll(info);
		}
	}
}
